how to use logical operators in mysql